package online.foxnull2.common.constant;

public class ProductConstant {

    public enum AttrEnum {
        ATTR_TYPE_SALE(0, "sale"), ATTR_TYPE_BASE(1, "base");

        private final Integer code;
        private final String msg;

        AttrEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum PublishStatus {
        STATUS_NEW(0, "new"),
        STATUE_UP(1, "up"),
        STATUE_DOWN(2, "down");

        private final Integer code;
        private final String msg;

        PublishStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
